//对象字面量
const bar = 1
const obj = {
      bar,
      method1(){
          console.log("11")
      },
      [bar]:123,
      [Math.random()]:456
}
console.log(obj)
obj.method1()